package lab01;

public class Text13 {
    public static void main(String[] args) {
        int x;
        for (x = 100; x <= 999; x++) {
            int si, ge, bai;
            bai = x / 100 % 10;
            si = x / 10 % 10;
            ge = x % 10;
            if (x == ge * ge * ge + si * si * si + bai * bai * bai) {
                System.out.println(x + "是水仙花数");
            }
        }
    }
}
